package ofc4j.model.axis;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class YAxis extends Axis {
    private Integer tick_length;
    private List<String> labels = new ArrayList<String>();
    
    public YAxis setTickLength(Integer tick_length) {
        this.tick_length = tick_length;
        return this;
    }
    
    public Integer getTickLength() {
        return tick_length;
    }
    
    public YAxis setLabels(String... labels) {
        this.labels.clear();
        return addLabels(labels);
    }
    
    public YAxis addLabels(String... labels) {
        this.labels.addAll(Arrays.asList(labels));
        return this;
    }
    
    public YAxis addLabels(List<String> labels) {
        this.labels.addAll(labels);
        return this;
    }
    
    public List<String> getLabels() {
        return labels;
    }
}
